<?php get_header(); ?>
<?php global $woo_options; ?>
       
    <div id="content" class="page col-full">
		<div id="main" class="col-left">
		           
		<?php if ( $woo_options[ 'woo_breadcrumbs_show' ] == 'true' ) { ?>
			<?php woo_breadcrumbs(); ?>  
		<?php } ?>  			

        <?php if (have_posts()) : $count = 0; ?>
        <?php while (have_posts()) : the_post(); $count++; ?>
                                                                    
            <div <?php post_class(); ?>>

			    <h1 class="title"><?php the_title(); ?></h1>
                            <?php include '/home/silicons/public_html/wp-content/themes/woostore/page-include-social-block.php'; ?>

                <!-- <div class="entry"> -->
                    
                <?php if(get_field('ppcompareproductone') != '') { // Include The Comparison Module
                    include '/home/silicons/public_html/wp-content/themes/woostore/page-include-pagepost-comparison-products.php';
                } ?>
                    
                <?php if(is_page(30301)) { ?>
                    <style>
                        .yarpp-related { display:none; }
                    </style>
                    <?php include '/home/silicons/public_html/wp-content/themes/woostore/page-include-music-festival-list.php'; ?>
                <?php } ?>
                    
                <?php if(30301 == $post->post_parent) { ?>
                    <style>
                        .yarpp-related { display:none; }
                    </style>
                    <?php include '/home/silicons/public_html/wp-content/themes/woostore/page-include-musical-festival-page.php'; ?>
                <?php } ?>
                    
               <?php if(is_page(29928)) { ?>
                    <style>
                        .yarpp-related { display:none; }
                    </style>
                    
                    <h3>Compare Silicon Solar To The Leading Online Solar Products:</h3>
                    <ul>
                    <?php // Call in the list of compare product pages
                        $comparepages = new wp_query('post_type=page&post_parent=29928');
                            while($comparepages->have_posts()) : $comparepages->the_post();
                    ?>
                        <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
                    <?php endwhile; ?>
                    <?php wp_reset_query(); ?>
                    </ul>
                    
               <?php } ?>
                    
                <?php if(29928 == $post->post_parent) { // Show The Comparison Page Layout
                    include '/home/silicons/public_html/wp-content/themes/woostore/page-include-super-comparison.php';
                } ?>
                    
                    <?php if(is_page('29683')) { ?>
                        <?php include '/home/silicons/public_html/wp-content/themes/woostore/page-include-rp-lists.php'; ?>
                    <?php } ?>
                
            <!-- CONTENT FOR POPULAR TAGS PAGE -->
            <?php if(is_page('27110')) { ?>
            <div style="padding:10px;border:#cccccc 1px solid;background:#f2f2f2;margin-bottom:20px;">
                <p style="font-weight:bold;">Looking For A Specific Tag, Or Type Of Product? Start Typing What You Are Looking For And The List Below Will Find The Tag(s) That You Are Looking For:</p>
                <form id="filter-form">
                    <input type="text" name="filter" id="filter" placeholder="Type to search" />
                </form>
            </div>
                <div class="tag-div">
                    <?php 
  					$args = array(
    					'taxonomy'  => array('post_tag', 'product_tag'),
                                                'number' => 0,
						'link' => 'view',
						'smallest' => 8,
						'largest' => 22,
                                                'format' => 'list'
   					); 
   
  					wp_tag_cloud($args);
				?>
            
                    <?php } ?>
                </div>
            <?php if(is_page('27110')) : echo do_shortcode('[featuredproducts]'); endif; ?>
            <?php if(is_page('27110')) : echo '<h2 class="pagesubsectionheader">Try Searching Our Products...</h2>'; endif; ?>
            <?php if(is_page('27110')) : echo do_shortcode('[do_widget "WooCommerce Predictive Search"]'); endif; ?>
            <?php // if(is_page('27110')) : include 'customfunctions/display-pages-by-template-brand-page.php' ; endif ; ?>
            <!-- END CONTENT FOR POPULAR TAGS PAGE -->
            
            <!-- CONTENT INCLUDE FOR DOC LIST PAGE -->
            <?php if(is_page(29298)) { ?>
                <style>
                    .yarpp-related { display:none; }
                </style>
                <?php include 'page-include-doc-list.php'; ?>
                <h2 class="pagesubsectionheader">Need Assistance? Ready To Order?</h2>
                <?php include 'page-include-contact-block.php'; ?>
            <?php } ?>
                
            <!-- LIST PAGES ON THE "SOLAR LIST" LIST PAGE & Articles On The "SO YOU..." PAGE -->
            <?php if(is_page(array(30495,30506))) { ?>
                <style>
                    .yarpp-related { display:none; }
                </style>
                <?php
                    global $currentpageid;
                    $currentpageid = get_the_ID();
                    $childpages = new WP_Query('post_type=page&post_parent='.$currentpageid.'&posts_per_page=-1&orderby=menu_order&depth=1');
                ?>
                    <ul>
                        <?php while ($childpages->have_posts()) : $childpages->the_post(); ?>
                            <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>   
                        <?php endwhile ?>
                    </ul>
                <?php wp_reset_postdata(); ?>
            <?php } ?>
             
                	<?php the_content(); ?>
                
                        <?php // Include The Google Contact Form On Contact Page
                        if(is_page(23009)) { ?>
                            <style>
                                .yarpp-related { display:none; }
                            </style>
                        <?php }?>
                
                        <?php // Include The Contact Block - If Option Is Turned On - Matt B - Apr 2013
                            if (get_field('showcontactblock')) {
                                echo do_shortcode('[contact]');
                        } ?>
                
                        <?php // Include All Tagged Warranty Documents On The Return Policy Page
                            if (is_page(22991)) {
                                include 'page-include-warranty-list.php';
                            } ?>
            
                        <?php if(is_page(28899)) { // Content Generation For The Pricelist Page ?>
                                    <style>
                                        .yarpp-related { display:none; }
                                    </style>
                                    <?php include 'page-include-woo-pricelist.php'; ?>
                                <?php } ?>
                    
                    <?php // Show List Of Child Pages On Pages Inside The Learning Center
				if (get_post_meta($post->ID, 'showchildpages', true) == 'Yes') { include ('custom-function-children-of-current-page.php'); }
				if (get_post_meta($post->ID, 'showchildpages', true) == 'Yes') { ?>
                <style>
					.yarpp-related { display:none; }
				</style>
			<?php } ?>
                    
                    <?php include 'page-include-why-shop-block.php'; ?>

               	<!--</div><!-- /.entry -->

				<?php edit_post_link( __( '{ Edit }', 'woothemes' ), '<span class="small">', '</span>' ); ?>           
                                                
		<?php endwhile; else: ?>
			<div <?php post_class(); ?>>
            	<p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ) ?></p>
            </div><!-- /.post -->
        <?php endif; ?>  
        
		</div><!-- /#main -->

        <?php get_sidebar(); ?>

    </div><!-- /#content -->
		
<?php get_footer(); ?>